//
//  CommentIndexModel.m
//  YXFinance
//
//  Created by uplooking on 2018/10/24.
//  Copyright © 2018年 CRLong. All rights reserved.
//

#import "CommentIndexModel.h"

@implementation CommentIndexModel

+ (instancetype)initWithDictionary:(NSDictionary *)dictionary{
    
    CommentIndexModel * model = [[CommentIndexModel alloc]init];
    
    model.c_id = dictionary[@"id"];
    model.msg = dictionary[@"msg"];
    model.user_id = dictionary[@"user_id"];
    model.news_id = dictionary[@"news_id"];
    model.good = dictionary[@"good"];
    model.bad = dictionary[@"bad"];
    model.userip = dictionary[@"userip"];
    model.addtime = dictionary[@"addtime"];
    model.nickname = dictionary[@"nickname"];
    model.avatar = dictionary[@"avatar"];
    model.sdate = dictionary[@"sdate"];
    
    NSNumber * isgoods = dictionary[@"is_goods"];
    model.is_goods = [isgoods integerValue];
    

    return model;
}

@end
